package com.it.methoddemo;

public class MethodDemo3 {
    public static void main(String[] args) {
        //定义一个方法，求一家商场每个季度的营业额。根据方法结果再计算出全年营业额
        int sum1 = getSum(10,20,30);
        int sum2 = getSum(10,20,30);
        int sum3 = getSum(10,20,30);
        int sum4 = getSum(10,20,30);
        System.out.println(sum1+sum2+sum3+sum4);
    }
    public static int getSum(int num1,int num2,int num3) {
        int result=num1+num2+num3;
        return result;
    }
}
